import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import {InstanceComponent} from "./instance.component";
import {InstanceAddComponent} from "./instance-add/instance-add.component";
import {InstanceUpdateComponent} from "./instance-update/instance-update.component";
import {InstanceAssignReceiverComponent} from "./instance-assign-receiver/instance-assign-receiver.component";
import {InstanceCategoryComponent} from "./instance-category/instance-category.component";

const routes: Routes = [
  {
    path: "",
    component: InstanceComponent
  },
  {
    path: "add",
    component: InstanceAddComponent
  },
  {
    path: "update",
    component: InstanceUpdateComponent
  },
  {
    path: "assign-receiver",
    component: InstanceAssignReceiverComponent
  },
  {
    path: "category",
    component: InstanceCategoryComponent
  }

];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class InstanceRoutingModule { }
